<?php

declare (strict_types = 1);

namespace auth;

use auth\contract\Factory as AuthFactory;
use think\Service;

class AuthService extends Service
{
    /**
     * 注册认证服务
     *
     * @return void
     */
    public function register(): void
    {
        $this->app->bind('auth', function () {
            return new AuthManager($this->app);
        });

        $this->app->bind(AuthFactory::class, 'auth');
    }

    public function boot()
    {
        // 服务启动
    }
}
